package top.jianx.music.provider.netease.request;

import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import top.jianx.music.base.SimpleRequestCallback;

import java.io.IOException;

public class NeteaseSearchMusiRequestCallback<NeteaseSong> extends SimpleRequestCallback<NeteaseSong> {
    private final static Logger logger = LoggerFactory.getLogger(NeteaseSearchMusiRequestCallback.class);

    @Override
    public void onFailure(IOException e) {
        logger.warn(">>>>>>>>>>>>>> [Netease]onFailure:{}", e.getMessage());
    }

    @Override
    public void onSuccess(NeteaseSong tResult) {
        logger.warn(">>>>>>>>>>>>>> [Netease]onSuccess:{}", JSONUtil.toJsonPrettyStr(tResult));
    }
}
